package com.scs.application.modules.fsd.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Description: 接口调用记录
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "智能柜接口掉用日志表")
@TableName("fsd_call_interface")
public class FsdCallInterface extends DataEntity {

    @EntityFieldAnnotation(
            text = "站点编号",
            length = "30",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String stationCode;

    @EntityFieldAnnotation(
            text = "用户id",
            type = EntityFieldType.LONG,
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String userId;

    @EntityFieldAnnotation(
            text = "接口名称",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String interfaceName;

    @EntityFieldAnnotation(
            text = "参数",
            type = EntityFieldType.TEXT,
            default_value = "",
            comment = ""
    )
    private String parameter;

    @EntityFieldAnnotation(
            text = "第一次结果",
            default_value = "",
            comment = ""
    )
    private String firstResults;

    @EntityFieldAnnotation(
            text = "第二次结果",
            default_value = "",
            comment = ""
    )
    private String secondResults;

    @EntityFieldAnnotation(
            text = "第三次结果",
            default_value = "",
            comment = ""
    )
    private String thirdResults;

    @EntityFieldAnnotation(
            text = "是否成功",
            not_null = true,
            type = EntityFieldType.TINYINT,
            default_value = "",
            comment = ""
    )
    private boolean successful;

}
